#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    : 2023/11/15 23:27
# @function: the script is used to do something.
# @version : 

import requests

# 图片的地址
logo_url = 'https://www.baidu.com/img/bd_logo1.png'
# 发送请求 获取的数据本身是图片，数据为进制数据
response = requests.get(logo_url).content
print(response)
# 保存数据
with open('baidu_logo.png', 'wb') as f:
    f.write(response)
